home *** CD-ROM | disk | FTP | other *** search
/ STraTOS 1997 April & May / STraTOS 1 - 1997 April & May.iso / CD01 / INTERNET / SITES / RAND / UNSPLIT / text0302.txt < prev    next >
Encoding:
Text File  |  1997-02-06  |  2.6 KB  |  79 lines

  1. > > flex and byacc (Berkley Yacc) are available for Atari's from various FTP
  2. > I've never seen byacc. Does it differ from the others in some significant way?
  3.  
  4. No, not as far as I know (although I haven't used bison). Someone is going to
  5. do a final year project here to improve the facilities provided by lex & yacc
  6. so that they both provide a full BNF+ notation (or something).
  7.  
  8. > By the way, bison is of course also available for the Ataris.
  9.  
  10. Yea, I didn't know what Bison was (no yacc in its name), but I suppose I
  11. should have guessed!
  12.  
  13. > > > C is a very nice language, in fact the best I've seen. Glasnost is only 
  14. > ...
  15. > > Hmm.. One of the lecturers here (on the compiler design/imp. courses) has
  16. > > a thing about C... He likes picking holes in it...
  17. > At the University I went to, most of the CS people are into functional
  18. > languages...
  19. >
  20. > While those may be nice and provable, I've yet to see one I'd like to
  21. > write a 'normal' program in.
  22.  
  23. Yea, there are a couple like that here... 
  24.  
  25. > > eg. does i+++j (which is valid C) mean:
  26. > >     (i++) + j   or   i + (++j)
  27. > Of course noone in his right mind would ever write code like that.
  28.  
  29. Correct!
  30.  
  31. > There is a very specific standard for the language that I'm sure would
  32. > answer most of his questions, though.  ;-)
  33.  
  34. Yep, true, but why should it be defined? it shold be obvious... (or at
  35. least thats his argument)
  36.  
  37. > > also the avoidance of keywords like endif and enddo are a pet hate...
  38. > ?!?
  39. > That's one of the major reasons I like C!
  40.  
  41. He doesn't like the fact that {} are overloaded, and that you can have
  42. problems like the 'dangling else' problem...
  43.  
  44. > (The ++ and += style things are another.)
  45. > Properly written C code can be so 'airy' and easy to read.
  46.  
  47. Yes, += etc. do make it much more readable...
  48.  
  49. > One of the functional languages I've seen actually used only the indentation
  50. > to mark blocks...
  51.  
  52. !?!?! Now that is mad...
  53.  
  54. > > (PS. the first expression is correct, IIRC)
  55. > I would have guessed so, but I certainly won't start writing like that.
  56. > Some people seem to think that it's smart to know and use every little
  57. > strange thing in the C syntax and operation priorities, but I much prefer
  58. > to write code that's readable by a person without in-depth C-knowledge.
  59.  
  60. Yes, I suppose that given a good compiler, you dont need to do lots of
  61. stupid contorted methods - the compiler should do the optimisation for you,
  62. and so all you have to worry about is readability... (and correctness, of
  63. course :)
  64.  
  65.  
  66. > Ooops!
  67. > I just realized that we're going off on another of those peripheral
  68. > discussions here...
  69.  
  70. Yep! :-)
  71.  
  72. Anthony
  73.  
  74.